import {SAVE_FAILURE_REPORT} from "./constants";

const defaultState = {
  failureReport: []
};

function reducer(state = defaultState, action) {
  switch (action.type) {
    case SAVE_FAILURE_REPORT :
      return {...state, failureReport: action.failureReport};
    default:
      return state;
  }
}

export default reducer;
